package com.eascs.web.o2o.web.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.eascs.app.log.Logger;
import com.eascs.app.log.LoggerFactory;
import com.eascs.site.view.ViewContext;
import com.eascs.tag.MenuTag;
import com.eascs.web.o2o.web.common.BaseMasterViewController;
import com.eascs.web.o2o.web.service.LoanBalanceForEchartsService;


/**
 * 业务按余额统计
 */
@Controller
@RequestMapping("/echarts")
public class LoanBalanceForEchartsController extends BaseMasterViewController {
	
	protected final Logger logger = LoggerFactory.getLogger(getClass());
	
	@Override
	public void preHandle() {
		super.preHandle();
		ViewContext.put(MenuTag.CURRENT_MENU_CODE, "echarts");
	}
	

	@Autowired
	LoanBalanceForEchartsService chartsReportService;
	
	@RequestMapping("/map")
	public String map(){
		return "echarts/loan_balance_emap";
	}
	
	
	@RequestMapping("/province")
	public String LoanBalanceForProvince(){
		List<Object[]> list = chartsReportService.LoanBalanceForProvince();
		ViewContext.put("list", list);
		return "echarts/loan_balance";
	}
	
	


		
}
